﻿using System.Drawing;
using System.Windows.Forms;

namespace StarWarsSagaCreator
{
    class FortBox : GroupBox
    {
        private Label FortAbilityMod;
        private Label FortClassBonus;
        private Label FortConLabel;
        private Label FortLabel;
        private Label FortLevelOrArmor;
        private Label FortLongLabels;
        private Label FortMisc;
        private Label plus1;
        private Label ten1;


        public FortBox()
        {
            //Location = new Point(150, 140);
            //Size = new Size(410, 200);
            //AutoSize = false;

            FortMisc = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(367, 36),
                Name = "FortMisc",
                Size = new Size(28, 28),
                TabIndex = 6,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            FortAbilityMod = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(291, 36),
                Name = "FortAbilityMod",
                Size = new Size(28, 28),
                TabIndex = 5,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            FortClassBonus = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(215, 36),
                Name = "FortClassBonus",
                Size = new Size(28, 28),
                TabIndex = 4,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            FortLevelOrArmor = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(139, 36),
                Name = "FortLevelOrArmor",
                Size = new Size(28, 28),
                TabIndex = 3,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            ten1 = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(68, 36),
                Name = "ten1",
                Size = new Size(28, 28),
                TabIndex = 2,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            FortLabel = new Label
            {
                Font = new Font("Microsoft Sans Serif", 20.25F, FontStyle.Bold, GraphicsUnit.Point, 0),
                Location = new Point(3, 9),
                Name = "FortLabel",
                Size = new Size(55, 55),
                TabIndex = 0,
                Text = "20",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            FortConLabel = new Label
            {
                Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Bold, GraphicsUnit.Point, 0),
                Location = new Point(169, 0),
                Name = "FortConLabel",
                Size = new Size(138, 22),
                TabIndex = 1,
                Text = "Fortitude (Constitution)",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            FortLongLabels = new Label
            {
                Location = new Point(64, 23),
                Name = "FortLongLabels",
                Size = new Size(342, 13),
                TabIndex = 7,
                Text = "                  Level or Armor         Class            Ability (Con)            Misc",
                AutoSize = false
            };
            plus1 = new Label
            {
                Font = new Font("Microsoft Sans Serif", 14.25F, FontStyle.Bold, GraphicsUnit.Point, 0),
                Location = new Point(66, 39),
                Name = "plus1",
                Size = new Size(342, 18),
                TabIndex = 8,
                Text = "       +          +          +           +   ",
                AutoSize = false
            };

            Controls.Add(FortMisc);
            Controls.Add(FortAbilityMod);
            Controls.Add(FortClassBonus);
            Controls.Add(FortLevelOrArmor);
            Controls.Add(ten1);
            Controls.Add(FortLabel);
            Controls.Add(FortConLabel);
            Controls.Add(FortLongLabels);
            Controls.Add(plus1);

        }

        public override sealed bool AutoSize
        {
            get { return base.AutoSize; }
            set { base.AutoSize = value; }
        }
    }

    class RefBox : GroupBox
    {
        private Label RefAbilityMod;
        private Label RefClassBonus;
        private Label RefDexLabel;
        private Label RefLabel;
        private Label RefLevelOrArmor;
        private Label RefLongLabels;
        private Label RefMisc;
        private Label plus2;
        private Label ten2;


        public RefBox()
        {
            RefMisc = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(367, 36),
                Name = "RefMisc",
                Size = new Size(28, 28),
                TabIndex = 7,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            RefAbilityMod = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(291, 36),
                Name = "RefAbilityMod",
                Size = new Size(28, 28),
                TabIndex = 6,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            RefClassBonus = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(215, 36),
                Name = "RefClassBonus",
                Size = new Size(28, 28),
                TabIndex = 5,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            RefLevelOrArmor = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(139, 36),
                Name = "RefLevelOrArmor",
                Size = new Size(28, 28),
                TabIndex = 4,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            ten2 = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(68, 36),
                Name = "ten2",
                Size = new Size(28, 28),
                TabIndex = 3,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            RefDexLabel = new Label
            {
                Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Bold, GraphicsUnit.Point, 0),
                Location = new Point(185, 0),
                Name = "RefDexLabel",
                Size = new Size(106, 22),
                TabIndex = 2,
                Text = "Reflex (Dexterity)",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            RefLabel = new Label
            {
                Font = new Font("Microsoft Sans Serif", 20.25F, FontStyle.Bold, GraphicsUnit.Point, 0),
                Location = new Point(3, 9),
                Name = "RefLabel",
                Size = new Size(55, 55),
                TabIndex = 0,
                Text = "20",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            RefLongLabels = new Label
            {
                Location = new Point(64, 23),
                Name = "RefLongLabels",
                Size = new Size(342, 13),
                TabIndex = 8,
                Text = "                  Level or Armor         Class            Ability (Con)            Misc",
                AutoSize = false
            };
            plus2 = new Label
            {
                Font = new Font("Microsoft Sans Serif", 14.25F, FontStyle.Bold, GraphicsUnit.Point, 0),
                Location = new Point(65, 36),
                Name = "plus2",
                Size = new Size(342, 18),
                TabIndex = 9,
                Text = "       +          +          +           +   ",
                AutoSize = false
            };

            Controls.Add(RefMisc);
            Controls.Add(RefAbilityMod);
            Controls.Add(RefClassBonus);
            Controls.Add(RefLevelOrArmor);
            Controls.Add(ten2);
            Controls.Add(RefDexLabel);
            Controls.Add(RefLabel);
            Controls.Add(RefLongLabels);
            Controls.Add(plus2);

        }
    }

    class WillBox : GroupBox
    {
        private Label WillAbilityMod;
        private Label WillClassBonus;
        private Label WillLabel;
        private Label WillLevelOrArmor;
        private Label WillLongLabels;
        private Label WillMisc;
        private Label WillWisLabel;
        private Label plus3;
        private Label ten3;

        public WillBox()
        {
            WillMisc = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(367, 36),
                Name = "WillMisc",
                Size = new Size(28, 28),
                TabIndex = 7,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            WillAbilityMod = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(291, 36),
                Name = "WillAbilityMod",
                Size = new Size(28, 28),
                TabIndex = 6,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            WillClassBonus = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(215, 36),
                Name = "WillClassBonus",
                Size = new Size(28, 28),
                TabIndex = 5,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            WillLevelOrArmor = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(139, 36),
                Name = "WillLevelOrArmor",
                Size = new Size(28, 28),
                TabIndex = 4,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            ten3 = new Label
            {
                Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0),
                Location = new Point(68, 36),
                Name = "ten3",
                Size = new Size(28, 28),
                TabIndex = 3,
                Text = "10",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            WillWisLabel = new Label
            {
                Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Bold, GraphicsUnit.Point, 0),
                Location = new Point(188, 0),
                Name = "WillWisLabel",
                Size = new Size(92, 22),
                TabIndex = 2,
                Text = "Will (Wisdom)",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            WillLabel = new Label
            {
                Font = new Font("Microsoft Sans Serif", 20.25F, FontStyle.Bold, GraphicsUnit.Point, 0),
                Location = new Point(3, 9),
                Name = "WillLabel",
                Size = new Size(55, 55),
                TabIndex = 1,
                Text = "20",
                TextAlign = ContentAlignment.MiddleCenter,
                AutoSize = false
            };
            WillLongLabels = new Label
            {
                Location = new Point(64, 23),
                Name = "WillLongLabels",
                Size = new Size(342, 13),
                TabIndex = 8,
                Text = "                  Level or Armor         Class            Ability (Con)            Misc",
                AutoSize = false
            };
            plus3 = new Label
            {
                Font = new Font("Microsoft Sans Serif", 14.25F, FontStyle.Bold, GraphicsUnit.Point, 0),
                Location = new Point(65, 39),
                Name = "plus3",
                Size = new Size(342, 18),
                TabIndex = 9,
                Text = "       +          +          +           +   ",
                AutoSize = false
            };

            Controls.Add(WillMisc);
            Controls.Add(WillAbilityMod);
            Controls.Add(WillClassBonus);
            Controls.Add(WillLevelOrArmor);
            Controls.Add(ten3);
            Controls.Add(WillWisLabel);
            Controls.Add(WillLabel);
            Controls.Add(WillLongLabels);
            Controls.Add(plus3);

        }
    }
}